<template>
  <table>
      <thead>
      <tr>
          <th>姓名</th>
          <th>年龄</th>
          <th>爱好</th>
          <th>操作</th>
      </tr>
      </thead>
      <tbody>
          <tr v-for="(item,index) in tableDate" :key="index">
              <td>{{item.name}}</td>
              <td>{{item.age}}</td>
              <td>{{item.hobby}}</td>
              <td>
                  <slot :$index="index" :row="item" name="b"></slot>
              </td>
          </tr>
      </tbody>
  </table>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
export default {
  props:{
    tableDate: Array
  },
  setup() {},
};
</script>
<style lang="scss" scoped>
</style>